<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>批量设置操作权限</title>

<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<jsp:include page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/im/lantop/userauthset/BatchOperateAuthSet.js"></script>
<jsp:include page="/avicit/platform6/modules/system/commonpopup/commonSelectionHead.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/im/lantop/userauthset/locale/language_<%=languageCode%>.js"></script>
<script type="text/javascript">
	dialogId = "${dialogId}";
	operateClassListStr = "${operateClassListStr}";
	cbbAuthResourceId = "${cbbAuthResourceId}";
	targetType = "${targetType}";
	targetId = "${targetId}";
	authServiceId = "${authServiceId}";
	resCode = "${resCode}";
	resName = "${resName}";
	actionType = "${actionType}";
	operateAuth = "${operateAuth}";
	sysId = "${sysId}";
</script>
<style>
 .panel-header{
   background:white;
 }
 .datagrid-view2{
    height:406px !important;
 }
  .datagrid-view{
  width:874px !important;
    border:1px solid #dedede !important;
  }
</style>
</head>
<body class="easyui-layout" onclick="bodyOnClick();">
	<div data-options="region:'center',split:false" style="width:400px; height:300px" id="ss">
		<%-- 操作权限分类 --%>
		<div class="easyui-panel" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify","i18n.lantop",locale)%>"     
		        style="width:auto;height:auto;padding:0px;background:white;"   
		        data-options="collapsed:true,closable:false, collapsible:false"> 
 		</div>
		<!-- 操作权限分类 begin -->
		<div id="toolbarOperateClass" class="datagrid-toolbar"
			style="height: 40px; display: block; ">
			<sec:accesscontrollist  hasPermission="3" domainObject ="userauthset_BatchOperateAuthSet_button_addOperateClass">
				<%-- 添加 --%>
				<td width="70px;">
				<a style=" margin-top: 6px;  margin-left: 20px;"title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.button.add","i18n.lantop",locale)%>" class="easyui-linkbutton  selbtnc" iconCls="icon-im-add" plain="true" onclick="addOperateClass();" href="javascript:void(0);">
				<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.button.add","i18n.lantop",locale)%></a></td>
			</sec:accesscontrollist>
			<sec:accesscontrollist  hasPermission="3" domainObject ="userauthset_BatchOperateAuthSet_button_saveOperateAuthSet">
				<%-- 保存 --%>
				<td width="70px;"><a title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.button.save","i18n.lantop",locale)%>" class="easyui-linkbutton selbtnc" iconCls="icon-im-save" plain="true" onclick="saveOperateAuthSet();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.button.save","i18n.lantop",locale)%></a></td>
			</sec:accesscontrollist>
			<sec:accesscontrollist  hasPermission="3" domainObject ="userauthset_BatchOperateAuthSet_button_closeWindow">
				<%-- 返回 --%>
				<td width="70px;"><a title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.button.return","i18n.lantop",locale)%>" class="easyui-linkbutton  selbtnc" iconCls="icon-im-back" plain="true" onclick="closeWindow();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.button.return","i18n.lantop",locale)%></a></td>
			</sec:accesscontrollist>
		</div>
    	<table id="operateDatagrid" class="easyui-datagrid"
			data-options="
						url: 'platform/UserAuthSetController/getSetOperatreClass',
						animate: false,
						collapsible: false,
						fitColumns: true,
						autoRowHeight: false,
						singleSelect: true,
						pagination:true,
						pageNumber:0,
						pageSize:20, 
						pageList:[20,30,50],
						toolbar:'#toolbarOperateClass',
			    		striped:true,
						fit:true,
						method: 'post',
						selectOnCheck: false,
						checkOnSelect: false,
						onClickRow: operateOnClickRow,
						onClickCell: operateOnClickCell
					">
			<thead>
				<tr>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_BatchOperateAuthSet_operateDatagrid_id">
						<th data-options="field:'ID', halign:'center',checkbox:true" title="主键ID" width="20">主键ID</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_BatchOperateAuthSet_operateDatagrid_operateClassName">
						<%-- 操作权限分类 --%>
						<th data-options="field:'OPERATE_CLASS_NAME', halign:'center', align:'center', sortable:false,editor:{type:'combobox',options:{valueField:'id',textField:'text',data:${operateClassListStr },editable:false}},formatter:formatClassName"
							width="200" title="操作权限分类"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassify.table.operateLimitClassify","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
				</tr>
			</thead>
		</table>
    	<!-- 已设置角色 end -->
    </div>
    <div data-options="region:'east',split:false" style="width:300px;border:1px solid #dedede;" >
		<!-- 角色已定义操作 begin -->
		<%-- 操作权限分类已定义操作 --%>
		<div class="easyui-panel" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.batchSetOperateLimit.operateLimitClassifyDefine","i18n.lantop",locale)%>"     
		        style="width:auto;height:auto;padding:0px;background:white;"   
		        data-options="collapsed:true,closable:false, collapsible:false"> 
 		</div>
		<!-- 菜单树 begin -->
    	<ul id="mainTree" class="easyui-tree"></ul>
    	<!-- 菜单树 end -->
	</div>
<script type="text/javascript" src="static/js/platform/index/js/divscroll.js" ></script>
<script>
	$(function(){
		$("#mainTree").perfectScrollbar();
	});
</script>
</body>
</html>
